home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13087 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in2.uu.net!world!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: 'delete' dos not work !!!! (for me...)
  5. Message-ID: <DooE97.Bq@mv.mv.com>
  6. Mime-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. Organization: GSSI
  9. Date: Fri, 22 Mar 1996 15:41:30 GMT
  10. References: <ROLLET.96Mar18215549@oriole.DMI.USherb.CA>
  11. X-Newsreader: WinVN 0.99.7
  12. X-Nntp-Posting-Host: gssi.mv.com
  13.  
  14. In article <ROLLET.96Mar18215549@oriole.DMI.USherb.CA>, 
  15. rollet@oriole.DMI.USherb.CA says...
  16. >
  17. >In that piece of code...
  18. >delete never free the variable donnee (or don in the second function)...
  19. >  .... program text snipped ....
  20.  
  21. Why do you think that "donee" is not being deallocated? You probably have
  22. some bug in program - it allocate some extra memory or corrupt memory
  23. allocation structures. 
  24. You can define your own "operator new" and "operator delete" which will
  25. print some kinde of protocol of allocation / deallocation memory or even
  26. do some correctness check - it could help. Or use some commercial product
  27. like Purify or Bound Checker - if you can.
  28.  
  29.  
  30. -- 
  31. <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
  32. ---------------------------------------------------------------
  33. Michael Furman,                       (603)893-1109
  34. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  35. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  36. North Salem, NH 03073-0097            71543.1334@compuserve.com
  37. ---------------------------------------------------------------
  38.  
  39.